package online.indigo6a.eshop.dto;

import lombok.Data;
import org.springframework.data.domain.PageRequest;

@Data
public class PageReq {
    private Integer pageIndex=0;
    private Integer pageSize=10;
    public PageRequest toPageRequest() {
        return PageRequest.of(pageIndex,pageSize);
    }
}
